$(document).ready(function(){
	var companycode = $('#companycode').val();
	for(i in jsoncom.company){
		if (companycode == jsoncom.company[i].number) {
			var html = '';
			if (jsoncom.company[i].siteUrl !== null) {
				html += '<a href="' + jsoncom.company[i].siteUrl + '" target="_blank">';
				html += jsoncom.company[i].name;
				html += '</a>';
			} else {
				html += jsoncom.company[i].name;
			}
			$('#companyname').html(html);
			break;
		}
	}
});
